



//
//  OneMoneyCollectionViewCell.m
//  1243
//
//  Created by ym on 16/6/30.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "OneMoneyCollectionViewCell.h"

@implementation OneMoneyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
//        self.backgroundColor = [UIColor whiteColor];
        self.pic = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height*0.6)];
        self.pic.backgroundColor = [UIColor redColor];
        
        self.titleLB = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.size.height*0.6, frame.size.width, frame.size.height*0.15)];
        self.titleLB.backgroundColor = [UIColor greenColor];
        
        self.progressView = [[UIView alloc]initWithFrame:CGRectMake(0, frame.size.height*0.7, frame.size.width, frame.size.height*0.15)];
        self.progressView.backgroundColor = [UIColor orangeColor];
        
        self.numLB = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.size.height*0.8, frame.size.width*0.6, frame.size.height*0.1)];
        self.numLB.backgroundColor = [UIColor cyanColor];
        
        self.joinBT =[UIButton buttonWithType:UIButtonTypeCustom];
        self.joinBT.frame = CGRectMake(frame.size.width*0.6, frame.size.height*0.8, frame.size.width*0.4, frame.size.height*0.1);
        self.joinBT
        .backgroundColor = [UIColor yellowColor];
        self.joinBT.userInteractionEnabled = NO;
       
        
        
        [self addSubview:self.pic];
        [self addSubview:self.titleLB];
        [self addSubview:self.progressView];
        [self addSubview:self.numLB];
        [self addSubview:self.joinBT];
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    
    
}




@end
